import requests


class User():
    url = "http://127.0.0.1:8080"

    # 获取验证码接口
    def getCode(self):
        resp = requests.get(self.url + "/yhoa/captchaImage")
        return resp

    def login(self,user):
        resp = requests.post(self.url+"/yhoa/login",json=user)
        return resp
